import 'package:flutter/material.dart';
import 'package:flutter_application_1/config/app_color.dart';

class RootPageHead extends StatelessWidget {
  const RootPageHead({Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Row(
      children: [
        Image.asset(
          'images/common/logo.png',
          height:40,
        ),
        Expanded(
          child:_searchContent()
           ),
      ],
    );
  }
  Widget _searchContent(){
    return  Container(
      height: 30,
      margin: EdgeInsets.symmetric(horizontal: 15),
      decoration: BoxDecoration(
        color: Color(0xffe7e7e7),
        borderRadius: BorderRadius.circular(30),
      ),
      child: Row(children: [
        Padding(
          padding: EdgeInsets.only(left:6,right:2),
          child:Icon(
          Icons.search,
          size:16,
          color: AppColors.un3active,
        ),),
        
        Text(
          '搜索关键词',
          style:TextStyle(
            color:AppColors.un3active,
            fontSize: 12 )
        )
      ],),
    );
  }
}